import fetch from 'utils/fetch';

export function pageMembershipAgentService(provinceId,cityId,areaId,checkStatus,orguserName,schoolId,phone,checkTimeFrom,checkTimeTo,page,rows) {
    const data = {
        provinceId,
        cityId,
        areaId,
        checkStatus,
        orguserName,
        schoolId,
        phone,
        checkTimeFrom,
        checkTimeTo
    };
    return fetch({
        url: `/agentIncrement/pageMembershipAgentService/${page}/${rows}`,
        method: 'post',
        data
    });
}

export function getMembershipServiceLogDetail(pId){
    const data = {
        pId
    };
    return fetch({
        url: `/agentIncrement/getMembershipServiceLogDetail`,
        method: 'post',
        data
    });
}

export function pageMembershipAgentLog(schoolId,serviceType,page,rows){
    const data = {
        schoolId,
        serviceType
    };
    return fetch({
        url: `/agentIncrement/pageMembershipAgentLog/${page}/${rows}`,
        method: 'post',
        data
    });
}


export function checkMembershipAgentService(pId,membershipAgentLogId,checkStatus,remark){
    const data = {
        pId,
        membershipAgentLogId,
        checkStatus,
        remark
    };
    return fetch({
        url: `/agentIncrement/checkMembershipAgentService`,
        method: 'post',
        data
    });
}


export function getCheckMembershipServiceLogDetail(pId,membershipAgentLogId,checkStatus,remark){
    const data = {
        pId
    };
    return fetch({
        url: `/agentIncrement/getCheckMembershipServiceLogDetail`,
        method: 'post',
        data
    });
}
